<?php
	include "./conexao.php";
?>
<!DOCTYPE html>
<html>
  
  <head>
    <meta charset="utf-8">
    <title>FaceTube - Adicionar Canal</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <meta name="description" content="">
    <meta name="author" content="rodrigo"/>
    

    <!--Importando css e js bootstrap -->
    <link rel="stylesheet" href="css/bootstrap.css">
    <script type="text/javascript" src="js/jquery.js"></script>
    <script type="text/javascript" src="js/bootstrap.js"></script>

    <!--Importando jquery-->
    <script type="text/javascript" src="js/jquery.validate.js"></script>
    <link rel="stylesheet" href="js/ui-1.10.4/css/ui-start.css">
    <script type="text/javascript" src="js/ui-1.10.4/js/jquery-ui.js"></script>
    <script type="text/javascript" src="js/procurarcanalbd.js"></script>
    <script type="text/javascript" src="js/destruir.js"></script>
    <script type="text/javascript" src="js/vdcanal.js"></script>
    <script type="text/javascript">
        $(document).ready(function(){
            atualiza();
        });
    </script>
    <link rel=stylesheet href="css/watch.css">
    
    </head>
  
  <body style="padding-top: 80px;">
    <div class="navbar navbar-fixed-top navbar-inverse">
<div class="container">
<div class="navbar-header">
<a type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"></a>
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</div>
<div class="collapse navbar-collapse navbar-ex1-collapse">
<ul class="nav navbar-nav navbar-right">
<li class=""><a href="http://facetube.esy.es/home.php">Home</a></li>
<li class=""><a href="http://facetube.esy.es/inscrever.php">Inscrever</a></li>
<li class=""><a href="#">Adicionar amigo</a></li>
<li class=""><a href="http://facetube.esy.es/addcanal.php">Adicionar canal</a></li>
<li class=""><a href="#">Minhas inscrições</a></li>
<li><a href="#">Bem-Vindo {US}</a></li>
<li><a href="#" id="sair">Sair</a></li>
</ul></div></div></div>

    <div class="container">
      <div class="row" style="background:#FFFFFF;">
<?php
$l = $_GET['v'];
$s = mysql_query("SELECT v.vdtitulo, v.vddescricao FROM video v WHERE v.vdlabel = '$l'");
$vid = mysql_fetch_array($s);
$des = str_replace("\n","<br>",$vid['vddescricao']);
echo "<div class=\"embed-responsive embed-responsive-16by9\">
<iframe class=\"embed-responsive-item\" src=\"https://www.youtube.com/embed/".$_GET['v']."?autoplay=1\" frameborder=\"0\" allowfullscreen=\"true\"></iframe></div>
<div class=\"col-md-12 navbar-inverse\" style=\"color:white;\"><div class=\"col-md-7\"><h3>".$vid['vdtitulo']."</h3><p>".$des."</p></div>
<div id=\"feed\" class=\"col-md-5\"><h4>Ultimos Videos</h4></div>
<div class\"col-sm-12\" style=\"border:10px solid none;text-align: center;\"><h6> <br>@".date("H:i:s - D/M/Y")."</h6></div></div>";
?>
</div>
</div>
</body>
</html>
